﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

/// <summary>
/// Summary description for structures
/// </summary>
namespace Tablet
{
    public struct Category
    {
        public int id;
        public string name;
        public int parentid;
        public string link;
    }

    public struct Application
    {
        public int id;
        public DateTime timestamp;
        public string name;
        public string hebrewname;
        public string icon;
        public string description;
        public string shortdescription;
        public int parentid;
        public string creator;
        public string link;
        public int numberofcomments;
        public int ismonthly;
        public string price;
        public double rating;
        public Category _category;
        public String[] AppType;

        public bool IsLoto;
        public bool IsOrange;
    }

    public struct Comment
    {
        public int id;
        public int applicationid;
        public DateTime timestamp;
        public string comment;
        public int totalresults;
        public User user;
    }

    public struct User
    {
        public int id;
        public DateTime timestamp;
        public int tokenid;
        public string firstname;
        public string lastname;
        public string email;
        public string image;
    }

    public struct Picture
    {
        public int id;
        public int applicationid;
        public string image;
        public int ismainimage;
        public int totalresults;
    }
}
